<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TMutableImage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_mutable_image.html">TMutableImage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_mutable_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TMutableImage类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TMutableImage 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_mutable_image.png" usemap="#awtk.TMutableImage_map" alt=""/>
  <map id="awtk.TMutableImage_map" name="awtk.TMutableImage_map">
<area href="classawtk_1_1_t_image_base.html" alt="awtk.TImageBase" shape="rect" coords="0,56,126,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae07e9eefc00c8341adf839da0bef5298"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mutable_image.html#ae07e9eefc00c8341adf839da0bef5298">TMutableImage</a> (long nativeObj)</td></tr>
<tr class="separator:ae07e9eefc00c8341adf839da0bef5298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_t_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_t_image_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_t_image_base.html">awtk.TImageBase</a></td></tr>
<tr class="memitem:ac78bc5b0dc4c2757678ff655f2272bdb inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac78bc5b0dc4c2757678ff655f2272bdb">TImageBase</a> (long nativeObj)</td></tr>
<tr class="separator:ac78bc5b0dc4c2757678ff655f2272bdb inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42ba05d5c25b6d126eb8c0a5d13e6f38 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a42ba05d5c25b6d126eb8c0a5d13e6f38">setImage</a> (String name)</td></tr>
<tr class="separator:a42ba05d5c25b6d126eb8c0a5d13e6f38 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb18360d2cb33ad4dee29d47153dc3f inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a1bb18360d2cb33ad4dee29d47153dc3f">setRotation</a> (double rotation)</td></tr>
<tr class="separator:a1bb18360d2cb33ad4dee29d47153dc3f inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55816dbecb3932dcbceabd91cb51d75b inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a55816dbecb3932dcbceabd91cb51d75b">setScale</a> (double scale_x, double scale_y)</td></tr>
<tr class="separator:a55816dbecb3932dcbceabd91cb51d75b inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac92c69653749c808bd90761a7710b07e inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac92c69653749c808bd90761a7710b07e">setAnchor</a> (double anchor_x, double anchor_y)</td></tr>
<tr class="separator:ac92c69653749c808bd90761a7710b07e inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab682cf3a6feb59d610c0b3e8f2c676a7 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ab682cf3a6feb59d610c0b3e8f2c676a7">setSelected</a> (boolean selected)</td></tr>
<tr class="separator:ab682cf3a6feb59d610c0b3e8f2c676a7 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3a0855b54e5d4c76b9e8f65b31b631 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a2f3a0855b54e5d4c76b9e8f65b31b631">setSelectable</a> (boolean selectable)</td></tr>
<tr class="separator:a2f3a0855b54e5d4c76b9e8f65b31b631 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af11b394ec45b443cc18c156b263bb582 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#af11b394ec45b443cc18c156b263bb582">setClickable</a> (boolean clickable)</td></tr>
<tr class="separator:af11b394ec45b443cc18c156b263bb582 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5482e6dd3e9037a0ca7b62d15593be95 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a5482e6dd3e9037a0ca7b62d15593be95">getImage</a> ()</td></tr>
<tr class="separator:a5482e6dd3e9037a0ca7b62d15593be95 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acae12927e1e5766231c25523336ba0ae inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#acae12927e1e5766231c25523336ba0ae">getAnchorX</a> ()</td></tr>
<tr class="separator:acae12927e1e5766231c25523336ba0ae inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f4153d3e9abdceb3622f56cd8b4430 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ad0f4153d3e9abdceb3622f56cd8b4430">getAnchorY</a> ()</td></tr>
<tr class="separator:ad0f4153d3e9abdceb3622f56cd8b4430 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5f787b68a90e175658072211bf8c1a4 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#aa5f787b68a90e175658072211bf8c1a4">getScaleX</a> ()</td></tr>
<tr class="separator:aa5f787b68a90e175658072211bf8c1a4 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad17d45699496bcb30b92a12fd16fd5d5 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ad17d45699496bcb30b92a12fd16fd5d5">getScaleY</a> ()</td></tr>
<tr class="separator:ad17d45699496bcb30b92a12fd16fd5d5 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2c15c45ba50a9c0a102a7e350d09f64 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ae2c15c45ba50a9c0a102a7e350d09f64">getRotation</a> ()</td></tr>
<tr class="separator:ae2c15c45ba50a9c0a102a7e350d09f64 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d627bcd6b5695f28e6a83f4bc1e9d00 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a7d627bcd6b5695f28e6a83f4bc1e9d00">getClickable</a> ()</td></tr>
<tr class="separator:a7d627bcd6b5695f28e6a83f4bc1e9d00 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a691207810dac09912affbbfe59add822 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a691207810dac09912affbbfe59add822">getSelectable</a> ()</td></tr>
<tr class="separator:a691207810dac09912affbbfe59add822 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f25405eff09676f614976d13a12681 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#af1f25405eff09676f614976d13a12681">getSelected</a> ()</td></tr>
<tr class="separator:af1f25405eff09676f614976d13a12681 inherit pub_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af6bd236f023082f0b3b29c5897e8c929"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_mutable_image.html">TMutableImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mutable_image.html#af6bd236f023082f0b3b29c5897e8c929">cast</a> (long nativeObj)</td></tr>
<tr class="separator:af6bd236f023082f0b3b29c5897e8c929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_t_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_t_image_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_t_image_base.html">awtk.TImageBase</a></td></tr>
<tr class="memitem:ac34e5f92ee6131cbf242f3b3454fe4fe inherit pub_static_methods_classawtk_1_1_t_image_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac34e5f92ee6131cbf242f3b3454fe4fe">cast</a> (TWidget widget)</td></tr>
<tr class="separator:ac34e5f92ee6131cbf242f3b3454fe4fe inherit pub_static_methods_classawtk_1_1_t_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>mutable图片控件。</p>
<p>像摄像头和视频的图像是变化的，每一帧都不同，我们把这类图片称为mutable image。</p>
<p>本控件辅助实现摄像头和视频的显示功能。</p>
<p>mutable_image_t是image\_base\_t的子类控件，image_base_t的函数均适用于mutable_image_t控件。</p>
<p>在xml中使用"mutable\_image"标签创建mutable图片控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">mutable_image</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>/&gt;</div>
</div><!-- fragment --><p>&gt;更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mutable_image.xml">mutable image</a></p>
<p>在c代码中使用函数mutable_image_create创建mutable图片控件。如：</p>
<blockquote class="doxtable">
<p>创建之后:</p>
<p>需要用mutable_image_set_create_image设置创建图片的回调函数。 需要用mutable_image_set_prepare_image设置准备图片的回调函数。 </p>
</blockquote>
<blockquote class="doxtable">
<p>完整示例请参考：[mutable image demo]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mutable_image.c">https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mutable_image.c</a>)</p>
<p>一般不需通过style来设置控件的显示风格，如果在特殊情况下需要，可以参考其它控件。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae07e9eefc00c8341adf839da0bef5298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae07e9eefc00c8341adf839da0bef5298">&#9670;&nbsp;</a></span>TMutableImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TMutableImage.TMutableImage </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af6bd236f023082f0b3b29c5897e8c929"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6bd236f023082f0b3b29c5897e8c929">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_mutable_image.html">TMutableImage</a> awtk.TMutableImage.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_image_base.html#a7da6ee71e180dfb1d8d20977f972a289">awtk.TImageBase</a> .</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TMutableImage.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
